using System.Windows.Forms;
using Microsoft.Practices.CompositeUI.SmartParts;
using DeblectorAddIn.WorkItems;
using Reflector;

namespace DeblectorAddIn
{
    
    public partial class ContentPanel : UserControl,IWindow
    {
        public ImageList Images
        {
            get { return imageHelper; }
        }
        public ContentPanel()
        {
          
            InitializeComponent();
        }

        #region IWindow Members

        public void Focus()
        {
            base.Focus();
        }

        public string Caption
        {
            get { return "Deblector"; }
        }

        public Control Content
        {
            get { return this; }
        }

        #endregion

        private void topWorkspace_SmartPartActivated(object sender, WorkspaceEventArgs e)
        {
            if (e.SmartPart is GenericWindowHost)
            {
                
                ((GenericWindowHost)e.SmartPart).DoLayout();
            }
        }
    }
}
